package com.xmtlxx.wms.domain.vo;

import com.xmtlxx.common.annotation.ExcelDictFormat;
import com.xmtlxx.common.convert.ExcelDictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


/**
 * 仓库日志视图对象 t_store_log
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
@Data
@ApiModel("仓库日志视图对象")
@ExcelIgnoreUnannotated
public class StoreLogVo {

    private static final long serialVersionUID = 1L;

    /**
     * 日志ID
     */
    @ExcelProperty(value = "日志ID")
    @ApiModelProperty("日志ID")
    private String id;

    /**
     * 部门ID
     */
    @ExcelProperty(value = "部门ID")
    @ApiModelProperty("部门ID")
    private Long deptId;

    /**
     * 仓库ID
     */
    @ExcelProperty(value = "仓库ID")
    @ApiModelProperty("仓库ID")
    private String storeId;

    /**
     * 记录时间
     */
    @ExcelProperty(value = "记录时间")
    @ApiModelProperty("记录时间")
    private Date logTime;

    /**
     * 经办人ID
     */
    @ExcelProperty(value = "经办人ID")
    @ApiModelProperty("经办人ID")
    private Long userId;

    /**
     * 经办人
     */
    @ExcelProperty(value = "经办人")
    @ApiModelProperty("经办人")
    private String operator;

    /**
     * 记录类型
     */
    @ExcelProperty(value = "记录类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "wms_store_log_type")
    @ApiModelProperty("记录类型")
    private String logType;

    /**
     * 记录内容
     */
    @ExcelProperty(value = "记录内容")
    @ApiModelProperty("记录内容")
    private String content;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    @ApiModelProperty("创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @ExcelProperty(value = "更新人")
    @ApiModelProperty("更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    /**
     * 删除标识
     */
    @ExcelProperty(value = "删除标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_del_flag")
    @ApiModelProperty("删除标识")
    private String delFlag;

    @ExcelProperty(value = "仓库")
    private String storeName;

    @ExcelProperty(value = "机构")
    private String deptName;

    @ExcelProperty(value = "机构")
    private String operatorName;
}
